import request from "../utils/request";

export interface TheOneListModel {
  itemIdsStr: string;
  size: number;
}
export default {
  //获取列表数据
  getHomeCateList() {
    return request.get(`/xhr/index.json`);
  },
  //为你推荐数据
  getTheOneList(data: TheOneListModel) {
    return request.post(`/xhr/index/items.json`, data);
  },
  //获取头部导航条
  getNavList() {
    return request.get(`item/cateList.json`);
  },
};
